<!--
    THIS EXAMPLE WAS DOWNLOADED FROM https://echarts.apache.org/examples/zh/editor.html?c=line-simple
-->
<!DOCTYPE html>
<html style="height: 100%">
<head>
    <meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0;padding: 10px">
<div class="layuimini-container layuimini-page-anim">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-xs12 layui-col-md12">
            <div id="container" style="min-height: 500px"></div>
        </div>
    </div>
</div>
</div>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js"></script>
<script type="text/javascript">
    var dom = document.getElementById("container");
    var myChart = echarts.init(dom);
    var app = {};
    var option;
    option = {
        title: {
            text: '收费折线图'
        },
        tooltip: {},
        legend: {
            data:['收费金额']
        },
        xAxis: {
            type: 'category',
            data: ['物业费', '车位管理费', '电费', '水费', '燃气费']
        },
        yAxis: {
            type: 'value'
        },
        series: [{
            name: '收费金额',
            data: [4500,3200,1650,1850,970],
            type: 'line'
        }]
    };

    if (option && typeof option === 'object') {
        myChart.setOption(option);
    }

</script>
</body>
</html>
